<?php

use Illuminate\Routing\Router;

Route::group([
    'prefix' => 'admin/empowerment',
    'namespace' => 'Beerus\\Modules\\Empowerment\\Controllers',
    'middleware' => ['web', 'admin'],
], function (Router $router) {

    $router->get('/reservation', 'ReservationController@index');

    /** banner管理 start **/
    $router->get('/banner/index', 'BannerController@bannerList');
    $router->get('/banner/index/create', 'BannerController@addBanner');
    $router->get('/banner/index/{id}/edit', 'BannerController@editBanner');
    $router->post('/banner/index/save', 'BannerController@save');
    $router->delete('/banner/index/{id}', 'BannerController@delBanner');
    $router->post('/banner/sort', 'BannerController@sort');

});